 var id = getvl("id");
$(function(){
	     if(id!=''){
	     	   goodsguanlis(id);
	     }else{
	     	alert("未传入有效值");
	     }
});
     
     
var pageNo=1;     
function goodsguanlis(id){
		$.ajax({
		url: urlcore + "/api/goods/Commoditymanagement?current="+pageNo+"&userId=15&types=3",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
			
				$.each(data.data.list, function(y,n) {
					//alert(JSON.stringify(data.data.list))
						  var goodsguanli='<div class="clearfix tuwen sell_shangpin">'+
'    	<a href="24.3.1goodsguanli_shangjia_detail.html">'+
'	        <div class="tuwen-img fl">'+
'	            <img src="'+n.coverUrl+'" width="75" height="75">'+
'	        </div>'+
'	        <div class="tuwen-wenzi">'+
'	            <h5 class="wuye_h01">'+n.goodsTitle+'</h5>'+
'	            <div class="wuye_div02">&yen;'+n.packPrice+'-&yen;'+n.tradePrice+'</div>'+
'	            <div class="clearfix sell_shangpin_xia">'+
'	            	已售出'+n.saleNum+'件<span>'+n.lookTime+'次浏览</span>'+
'	            </div>'+
'	        </div>'+
'        </a>'+
'    </div>';
                    $("#goodsguanli").append(goodsguanli);					
				});
            
                 			    
			}
		},
		error:function() {
			alert("error");
		}
	});
}
